Skip to main content
Glama
route.ts534 B
import { appRouter } from "@repo/trpc" import { fetchRequestHandler } from "@trpc/server/adapters/fetch" import { createContextFromRequest } from "@/lib/trpc/server"; export const dynamic = "force-dynamic"; /** * 处理tRPC请求 * @param req * @returns */ const handler = (req: Request) => fetchRequestHandler({ endpoint: "/api/trpc", req, router: appRouter, createContext: async (opts) => { return await createContextFromRequest(opts.req); }, }) export { handler as GET, handler as POST }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metacode0602/open-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server